var path = location.pathname.replace(/\/[^/]+$/, '');

var dojoConfig = {
  parseOnLoad: true,
  packages: [
    {
      //天地图
      name: 'TDlib',
      location: path + '/js/tdlib'
    },
    {
      name: 'Mock',
      location: path.substring(0, path) + '/node_modules/mockjs/dist/'
    },
    {
      name: 'Utils',
      location: path + '/js/utils'
    }
  ]
};
